package com.atguigu02.memory;

/**
 * @author liu
 * @create 14:31
 */

public class Person {
    //属性
    String name;
    int age;
    char gender;//性别

    //行为
    public void eat(){
        System.out.println("人能吃饭");
    }
    public void sleep(int hour){
        System.out.println("人每天要睡觉"+ hour+"小时");
    }
    public void interest(String hobby){
        System.out.println("我的爱好是："+hobby);
    }


}
